import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
import workSpace from '../views/workSpace'
import orderSetup from '../views/check/orderSetup'
import orderList from '../views/check/orderList'
import setMeal from '../views/check/setMeal'
import checkGroup from '../views/check/checkGroup'
import checkItem from '../views/check/checkItem'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home,
    children: [
      {
        path: '/workSpace',
        name: 'workSpace',
        component: workSpace
      },
    ],
  },
  {
    path: '/',
    name: '体检管理',
    component: Home,
    children: [
      {
        path: '/orderList',
        name: 'orderList',
        component: orderList
      },
      {
        path: '/orderSetup',
        name: 'orderSetup',
        component: orderSetup
      },
      {
        path: '/setMeal',
        name: 'setMeal',
        component: setMeal
      },
      {
        path: '/checkGroup',
        name: 'checkGroup',
        component: checkGroup
      },
      {
        path: '/checkItem',
        name: 'checkItem',
        component: checkItem
      },
    ],
  },

]

const router = new VueRouter({
  routes
})

export default router
